package edu.hunau.cxb18.pojo;

import java.time.LocalDateTime;

/**
 * @author gwl
 * @create 2020-02-28 下午 2:59
 */
public class Order {


    private String id;

    /*
    * 总金额
    * */
    private double total;
    /*
    * 时间戳
    * */
    private LocalDateTime dotime;
    private String status;
    private User user;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Order() {
    }

    public Order(double total) {
        this.total = total;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public double getTotal() {
        return total;
    }

    public void setTotal(double total) {
        this.total = total;
    }

    public LocalDateTime getDotime() {
        return dotime;
    }

    public void setDotime(LocalDateTime dotime) {
        this.dotime = dotime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id='" + id + '\'' +
                ", total=" + total +
                ", dotime=" + dotime +
                ", status='" + status + '\'' +
                ", user=" + user +
                '}';
    }
}
